﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'PRC_USER_FIRST_ACCESS_SE')
	BEGIN
		DROP  Procedure  dbo.PRC_USER_FIRST_ACCESS_SE
	END

GO

CREATE PROCEDURE [dbo].[PRC_USER_FIRST_ACCESS_SE] 
(
    @TU_ID Integer )
AS
	SELECT 
            a.TU_FIRST_ACCESS
	    FROM TB_USER a
	    WHERE a.TU_ID = @TU_ID


GO

GRANT EXEC ON dbo.PRC_USER_FIRST_ACCESS_SE TO PUBLIC

GO

